//
//  XLDateTool.h
//  campus
//
//  Created by xl on 2019/12/13.
//  Copyright © 2019 xl. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface XLDateTool : NSObject

+ (NSTimeInterval)currentTimeInMilliseconds;
+ (NSTimeInterval)currentTimeInMillisecondsWithServerSync:(BOOL)flag;

/**
 *@Param timeStamp 时间戳
 *
 *@Param formatter 返回时间样式，例如yyyy-MM-dd HH:mm:ss
 */
+ (NSString *)getDateWithTimeStamp:(NSNumber *)timeStamp formatter:(NSString *)formatter;

/**
*
*@Param formatter 返回时间样式，例如yyyy-MM-dd HH:mm:ss
*/
+ (NSString *)getCurrentTimeFormatter:(NSString *)formatter;


+ (NSTimeInterval)currentTime:(NSString *)currentTime  creatTime:(NSString *)creatTime;

@end


